Optimal. Leaf size=239 \[ \frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {b e^2 x^6 \left (27 c^2 d-7 e\right )}{378 c^3}-\frac {b e x^4 \left (189 c^4 d^2-135 c^2 d e+35 e^2\right )}{1260 c^5}+\frac {b \left (105 c^6 d^3-189 c^4 d^2 e+135 c^2 d e^2-35 e^3\right ) \log \left (c^2 x^2+1\right )}{630 c^9}-\frac {b x^2 \left (105 c^6 d^3-189 c^4 d^2 e+135 c^2 d e^2-35 e^3\right )}{630 c^7}-\frac {b e^3 x^8}{72 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.38, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {270, 4976, 12, 1799, 1620} \[ \frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {b e x^4 \left (189 c^4 d^2-135 c^2 d e+35 e^2\right )}{1260 c^5}-\frac {b x^2 \left (-189 c^4 d^2 e+105 c^6 d^3+135 c^2 d e^2-35 e^3\right )}{630 c^7}+\frac {b \left (-189 c^4 d^2 e+105 c^6 d^3+135 c^2 d e^2-35 e^3\right ) \log \left (c^2 x^2+1\right )}{630 c^9}-\frac {b e^2 x^6 \left (27 c^2 d-7 e\right )}{378 c^3}-\frac {b e^3 x^8}{72 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 270
Rule 1620
Rule 1799
Rule 4976
Rubi steps
\begin {align*} \int x^2 \left (d+e x^2\right )^3 \left (a+b \tan ^{-1}(c x)\right ) \, dx &=\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-(b c) \int \frac {x^3 \left (105 d^3+189 d^2 e x^2+135 d e^2 x^4+35 e^3 x^6\right )}{315 \left (1+c^2 x^2\right )} \, dx\\ &=\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {1}{315} (b c) \int \frac {x^3 \left (105 d^3+189 d^2 e x^2+135 d e^2 x^4+35 e^3 x^6\right )}{1+c^2 x^2} \, dx\\ &=\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {1}{630} (b c) \operatorname {Subst}\left (\int \frac {x \left (105 d^3+189 d^2 e x+135 d e^2 x^2+35 e^3 x^3\right )}{1+c^2 x} \, dx,x,x^2\right )\\ &=\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {1}{630} (b c) \operatorname {Subst}\left (\int \left (\frac {105 c^6 d^3-189 c^4 d^2 e+135 c^2 d e^2-35 e^3}{c^8}+\frac {e \left (189 c^4 d^2-135 c^2 d e+35 e^2\right ) x}{c^6}+\frac {5 \left (27 c^2 d-7 e\right ) e^2 x^2}{c^4}+\frac {35 e^3 x^3}{c^2}+\frac {-105 c^6 d^3+189 c^4 d^2 e-135 c^2 d e^2+35 e^3}{c^8 \left (1+c^2 x\right )}\right ) \, dx,x,x^2\right )\\ &=-\frac {b \left (105 c^6 d^3-189 c^4 d^2 e+135 c^2 d e^2-35 e^3\right ) x^2}{630 c^7}-\frac {b e \left (189 c^4 d^2-135 c^2 d e+35 e^2\right ) x^4}{1260 c^5}-\frac {b \left (27 c^2 d-7 e\right ) e^2 x^6}{378 c^3}-\frac {b e^3 x^8}{72 c}+\frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )+\frac {b \left (105 c^6 d^3-189 c^4 d^2 e+135 c^2 d e^2-35 e^3\right ) \log \left (1+c^2 x^2\right )}{630 c^9}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.22, size = 252, normalized size = 1.05 \[ \frac {1}{3} d^3 x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{5} d^2 e x^5 \left (a+b \tan ^{-1}(c x)\right )+\frac {3}{7} d e^2 x^7 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{9} e^3 x^9 \left (a+b \tan ^{-1}(c x)\right )-\frac {1}{6} b d^3 \left (\frac {x^2}{c}-\frac {\log \left (c^2 x^2+1\right )}{c^3}\right )+\frac {3}{20} b d^2 e \left (\frac {2 x^2}{c^3}-\frac {2 \log \left (c^2 x^2+1\right )}{c^5}-\frac {x^4}{c}\right )-\frac {1}{28} b d e^2 \left (\frac {6 x^2}{c^5}-\frac {3 x^4}{c^3}-\frac {6 \log \left (c^2 x^2+1\right )}{c^7}+\frac {2 x^6}{c}\right )+\frac {1}{216} b e^3 \left (\frac {12 x^2}{c^7}-\frac {6 x^4}{c^5}+\frac {4 x^6}{c^3}-\frac {12 \log \left (c^2 x^2+1\right )}{c^9}-\frac {3 x^8}{c}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 277, normalized size = 1.16 \[ \frac {840 \, a c^{9} e^{3} x^{9} + 3240 \, a c^{9} d e^{2} x^{7} - 105 \, b c^{8} e^{3} x^{8} + 4536 \, a c^{9} d^{2} e x^{5} + 2520 \, a c^{9} d^{3} x^{3} - 20 \, {\left (27 \, b c^{8} d e^{2} - 7 \, b c^{6} e^{3}\right )} x^{6} - 6 \, {\left (189 \, b c^{8} d^{2} e - 135 \, b c^{6} d e^{2} + 35 \, b c^{4} e^{3}\right )} x^{4} - 12 \, {\left (105 \, b c^{8} d^{3} - 189 \, b c^{6} d^{2} e + 135 \, b c^{4} d e^{2} - 35 \, b c^{2} e^{3}\right )} x^{2} + 24 \, {\left (35 \, b c^{9} e^{3} x^{9} + 135 \, b c^{9} d e^{2} x^{7} + 189 \, b c^{9} d^{2} e x^{5} + 105 \, b c^{9} d^{3} x^{3}\right )} \arctan \left (c x\right ) + 12 \, {\left (105 \, b c^{6} d^{3} - 189 \, b c^{4} d^{2} e + 135 \, b c^{2} d e^{2} - 35 \, b e^{3}\right )} \log \left (c^{2} x^{2} + 1\right )}{7560 \, c^{9}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 297, normalized size = 1.24 \[ \frac {a \,e^{3} x^{9}}{9}+\frac {3 a d \,e^{2} x^{7}}{7}+\frac {3 a \,d^{2} e \,x^{5}}{5}+\frac {a \,d^{3} x^{3}}{3}+\frac {b \arctan \left (c x \right ) e^{3} x^{9}}{9}+\frac {3 b \arctan \left (c x \right ) d \,e^{2} x^{7}}{7}+\frac {3 b \arctan \left (c x \right ) d^{2} e \,x^{5}}{5}+\frac {b \arctan \left (c x \right ) d^{3} x^{3}}{3}-\frac {b \,d^{3} x^{2}}{6 c}-\frac {3 b \,d^{2} e \,x^{4}}{20 c}-\frac {b d \,e^{2} x^{6}}{14 c}+\frac {3 b \,x^{2} d^{2} e}{10 c^{3}}-\frac {b \,e^{3} x^{8}}{72 c}+\frac {3 b \,x^{4} d \,e^{2}}{28 c^{3}}+\frac {b \,x^{6} e^{3}}{54 c^{3}}-\frac {3 b \,x^{2} d \,e^{2}}{14 c^{5}}-\frac {b \,e^{3} x^{4}}{36 c^{5}}+\frac {b \,x^{2} e^{3}}{18 c^{7}}+\frac {b \,d^{3} \ln \left (c^{2} x^{2}+1\right )}{6 c^{3}}-\frac {3 b \ln \left (c^{2} x^{2}+1\right ) d^{2} e}{10 c^{5}}+\frac {3 b \ln \left (c^{2} x^{2}+1\right ) d \,e^{2}}{14 c^{7}}-\frac {b \ln \left (c^{2} x^{2}+1\right ) e^{3}}{18 c^{9}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 265, normalized size = 1.11 \[ \frac {1}{9} \, a e^{3} x^{9} + \frac {3}{7} \, a d e^{2} x^{7} + \frac {3}{5} \, a d^{2} e x^{5} + \frac {1}{3} \, a d^{3} x^{3} + \frac {1}{6} \, {\left (2 \, x^{3} \arctan \left (c x\right ) - c {\left (\frac {x^{2}}{c^{2}} - \frac {\log \left (c^{2} x^{2} + 1\right )}{c^{4}}\right )}\right )} b d^{3} + \frac {3}{20} \, {\left (4 \, x^{5} \arctan \left (c x\right ) - c {\left (\frac {c^{2} x^{4} - 2 \, x^{2}}{c^{4}} + \frac {2 \, \log \left (c^{2} x^{2} + 1\right )}{c^{6}}\right )}\right )} b d^{2} e + \frac {1}{28} \, {\left (12 \, x^{7} \arctan \left (c x\right ) - c {\left (\frac {2 \, c^{4} x^{6} - 3 \, c^{2} x^{4} + 6 \, x^{2}}{c^{6}} - \frac {6 \, \log \left (c^{2} x^{2} + 1\right )}{c^{8}}\right )}\right )} b d e^{2} + \frac {1}{216} \, {\left (24 \, x^{9} \arctan \left (c x\right ) - c {\left (\frac {3 \, c^{6} x^{8} - 4 \, c^{4} x^{6} + 6 \, c^{2} x^{4} - 12 \, x^{2}}{c^{8}} + \frac {12 \, \log \left (c^{2} x^{2} + 1\right )}{c^{10}}\right )}\right )} b e^{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.97, size = 296, normalized size = 1.24 \[ \frac {a\,d^3\,x^3}{3}+\frac {a\,e^3\,x^9}{9}+\frac {b\,d^3\,\ln \left (c^2\,x^2+1\right )}{6\,c^3}-\frac {b\,e^3\,\ln \left (c^2\,x^2+1\right )}{18\,c^9}-\frac {b\,d^3\,x^2}{6\,c}-\frac {b\,e^3\,x^8}{72\,c}+\frac {b\,e^3\,x^6}{54\,c^3}-\frac {b\,e^3\,x^4}{36\,c^5}+\frac {b\,e^3\,x^2}{18\,c^7}+\frac {3\,a\,d^2\,e\,x^5}{5}+\frac {3\,a\,d\,e^2\,x^7}{7}+\frac {b\,d^3\,x^3\,\mathrm {atan}\left (c\,x\right )}{3}+\frac {b\,e^3\,x^9\,\mathrm {atan}\left (c\,x\right )}{9}+\frac {3\,b\,d^2\,e\,x^5\,\mathrm {atan}\left (c\,x\right )}{5}+\frac {3\,b\,d\,e^2\,x^7\,\mathrm {atan}\left (c\,x\right )}{7}-\frac {3\,b\,d^2\,e\,\ln \left (c^2\,x^2+1\right )}{10\,c^5}+\frac {3\,b\,d\,e^2\,\ln \left (c^2\,x^2+1\right )}{14\,c^7}-\frac {3\,b\,d^2\,e\,x^4}{20\,c}+\frac {3\,b\,d^2\,e\,x^2}{10\,c^3}-\frac {b\,d\,e^2\,x^6}{14\,c}+\frac {3\,b\,d\,e^2\,x^4}{28\,c^3}-\frac {3\,b\,d\,e^2\,x^2}{14\,c^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.92, size = 389, normalized size = 1.63 \[ \begin {cases} \frac {a d^{3} x^{3}}{3} + \frac {3 a d^{2} e x^{5}}{5} + \frac {3 a d e^{2} x^{7}}{7} + \frac {a e^{3} x^{9}}{9} + \frac {b d^{3} x^{3} \operatorname {atan}{\left (c x \right )}}{3} + \frac {3 b d^{2} e x^{5} \operatorname {atan}{\left (c x \right )}}{5} + \frac {3 b d e^{2} x^{7} \operatorname {atan}{\left (c x \right )}}{7} + \frac {b e^{3} x^{9} \operatorname {atan}{\left (c x \right )}}{9} - \frac {b d^{3} x^{2}}{6 c} - \frac {3 b d^{2} e x^{4}}{20 c} - \frac {b d e^{2} x^{6}}{14 c} - \frac {b e^{3} x^{8}}{72 c} + \frac {b d^{3} \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{6 c^{3}} + \frac {3 b d^{2} e x^{2}}{10 c^{3}} + \frac {3 b d e^{2} x^{4}}{28 c^{3}} + \frac {b e^{3} x^{6}}{54 c^{3}} - \frac {3 b d^{2} e \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{10 c^{5}} - \frac {3 b d e^{2} x^{2}}{14 c^{5}} - \frac {b e^{3} x^{4}}{36 c^{5}} + \frac {3 b d e^{2} \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{14 c^{7}} + \frac {b e^{3} x^{2}}{18 c^{7}} - \frac {b e^{3} \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{18 c^{9}} & \text {for}\: c \neq 0 \\a \left (\frac {d^{3} x^{3}}{3} + \frac {3 d^{2} e x^{5}}{5} + \frac {3 d e^{2} x^{7}}{7} + \frac {e^{3} x^{9}}{9}\right ) & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________